package com.xj.common.bussiness.transferLicense.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import static org.springframework.format.annotation.DateTimeFormat.ISO.DATE;


/**
 * <p>
 * 过户（转移登记申请表）/上户表（普查登记申请表）
 * </p>
 *
 * @author Hmemb
 * @since 2018-01-11
 */
@Data
@EqualsAndHashCode(callSuper=false)
@TableName("tb_transfer_license")
public class TbTransferLicense extends Model<TbTransferLicense> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
	/**
	 * 填表日期
	 */
	@TableField(value="create_date")
	@DateTimeFormat(iso = DATE)
	private Date createDate;
	/**
	 * 设备所属人身份证号/企业代码
	 */
	private String identification;
	/**
	 * 设备出厂编号
	 */
	@TableField(value="factory_num")
	private String factoryNum;
	/**
	 * 转入申请人身份证/企业代码（申请类型为过户时需填此字段，上户申请表不需要填）
	 */
	@TableField(value="change_into_identification")
	private String changeIntoIdentification;
	/**
	 * 过户表状态（0 待审核，1审核中，2已审核，3审核未通过，4已完成）
	 */
	private String state;

	/**
	 * 设备牌编号(车牌号)
	 */
	@TableField(value="plate_Num")
	private String plateNum;

	public String getIdentification() {
		return identification;
	}

	public void setIdentification(String identification) {
		this.identification = identification;
	}

	public String getFactoryNum() {
		return factoryNum;
	}

	public void setFactoryNum(String factoryNum) {
		this.factoryNum = factoryNum;
	}

	public String getChangeIntoIdentification() {
		return changeIntoIdentification;
	}

	public void setChangeIntoIdentification(String changeIntoIdentification) {
		this.changeIntoIdentification = changeIntoIdentification;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getPlateNum() {
		return plateNum;
	}

	public void setPlateNum(String plateNum) {
		this.plateNum = plateNum;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
}
